-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chat: prototype of choices API for response stream #238011
base: main
Are you sure you want to change the base?
Conversation
This is an API similar to buttons in notifications and is a bit more flexible than the current confirmation API. It could supplant confirmation, but I left confirmation as-is for the moment. Marking this PR initially as a draft pending some discussion about awaitable choices
if (isResponseVM(element)) { | ||
const prompt = `${e.label}: "${choices.title}"`; | ||
const options: IChatSendRequestOptions = { | ||
choiceData: [e.data], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having trouble to understand why this is an array and not just "the item", also how is the related to madeChoice
. From the usage they seem equal'ish but from the API choiceData
suggests to be all data and the latter seems to be the actual choice made?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following the pattern of confirmations, but I'm good making it a single object if you think it makes more sense
Generally looking good, have some trouble understanding what Also cc @roblourens for changes in the UI/model/etc |
These are the same thing 🤔 |
This is an API similar to buttons in notifications and is a bit more flexible than the current confirmation API. It could supplant confirmation, but I left confirmation as-is for the moment. Marking this PR initially as a draft pending some discussion about awaitable choices
25-01-9af75035-5922-4948-aeff-12ee0eb2374b.mp4